﻿using System;

class CalculateTrapezoidArea

        // Write an expression that calculates trapezoid's area by given sides a and b and height h.

{
    static void Main()
    {
        Console.Write("Enter trapezoid's side A in cm = ");
        double a = double.Parse(Console.ReadLine());
        Console.Write("Enter trapezoid's side B in cm = ");
        double b = double.Parse(Console.ReadLine());
        Console.Write("Enter trapezoid's height in cm = ");
        double height = double.Parse(Console.ReadLine());
        Console.WriteLine("The are of the trapezoid is: {0}cm", (a + b) / 2 * height);
    }
}

